package comm.bean.config;

import comm.bean.service.BeanWayService;
import comm.bean.service.Jsr250BeanService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: TODO
 * @Author: chris_cai@enable-ets.com
 * @Since: 2018年09月26日
 */
@Configuration
@ComponentScan(basePackages = "comm.bean")
public class BeanConfig {

    @Bean(initMethod = "init",destroyMethod = "destroy")
    public BeanWayService beanWayService() {
        return new BeanWayService();
    }

    @Bean
    public Jsr250BeanService jsr250BeanService() {
        return new Jsr250BeanService();
    }
}
